
package com.scs.application.modules.cert.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.scs.application.modules.cert.entity.Certificate;
import com.scs.application.modules.cert.request.CertificateQueryRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预定义资质 mapper对象
 *
 */
@Mapper
public interface CertificateMapper extends BaseMapper<Certificate> {

    IPage<Certificate> pageHospitalNotExist(IPage page, @Param("request") CertificateQueryRequest request);

    // 院方资质定义列表左侧使用
    List<Certificate> listForHpdefineSelect();

    // 院方资质定义添加使用
    IPage<Certificate> pageForHpdefineAdd(
            IPage<Certificate> page,
            @Param(Constants.WRAPPER) QueryWrapper<Certificate> queryWrapper,
            @Param("hospitalId") String hospitalId
    );

}
